package ooday02;

import javax.sound.midi.Soundbank;

public class ExtendsTest {
    public static void main(String[] args) {
        Student ls = new Student("ls",19,"jsd2302","001","二龙湖");
        ls.study();
        ls.eat();
        ls.sayHi();
        ls.sleep();
        Teacher ww = new Teacher("王五",55,"克东",5500);
        ww.teach();
        ww.eat();
        ww.sayHi();
        ww.sleep();
        Doctor zs = new Doctor("zs",45,"二克山","外科医生");
        zs.eat();
        zs.cut();
        zs.sayHi();
        zs.sleep();
    }
}
